const proxy = require("http-proxy-middleware");

module.exports = function (app) {
  app.use(
    proxy("/api", {
      target:
        "https://mock.mengxuegu.com/mock/6038aaa0ca363222f3d57c58/example",
      changeOrigin: true,
      pathRewrite: { "^/api": "" },
    })
  );
};
